package cn.javadog.ss.spring.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author 余勇
 * @date 2019年11月25日 16:36:00
 */
@EnableAspectJAutoProxy
@Configuration
@ComponentScan(basePackages = "cn.javadog.ss.spring.aop")
public class AopBootstrap {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AopBootstrap.class);
		AdvisedTargetBean targetBean = applicationContext.getBean(AdvisedTargetBean.class);
		targetBean.jointCut();
	}

}
